﻿<Page x:Class="PTCScheduler.EditMenu_Pages.UpdateStudent_Page"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="480" d:DesignWidth="825"
	Title="Update Student">

    <Grid>
        <Grid>
            <Grid Style="{StaticResource PageStyle}">
                <Label Content="Student First Name:" Height="28" HorizontalAlignment="Left" Margin="16,63,0,0" Name="lblStudentFName" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="165,65,0,0" MaxLength="20" Name="txtStudentFName" VerticalAlignment="Top" Width="120" />
                <Label Content="Student Last Name:" Height="28" HorizontalAlignment="Left" Margin="18,106,0,0" Name="lblStudentLName" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="165,108,0,0" MaxLength="20" Name="txtStudentLName" VerticalAlignment="Top" Width="120" />
                <Label Content="Student ID:" Height="28" HorizontalAlignment="Left" Margin="18,149,0,0" Name="lblStudentID" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="165,151,0,0" Name="txtStudentID" VerticalAlignment="Top" Width="120" MaxLength="9" IsReadOnly="False" />
                <Label Content="Parent Email:" Height="28" HorizontalAlignment="Left" Margin="18,192,0,0" Name="lblParentEmail" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="165,194,0,0" MaxLength="40" Name="txtParentEmail" VerticalAlignment="Top" Width="120" />
                <Label Content="Parent Phone:" Height="28" HorizontalAlignment="Left" Margin="18,235,0,0" Name="lblParentPhone" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="165,237,0,0" MaxLength="15" Name="txtParentPhone" VerticalAlignment="Top" Width="120" />
                <Button Click="btnUpdate_Click" Content="Update" FontFamily="Arial" FontSize="14" FontWeight="Bold" Height="40" HorizontalAlignment="Left" Margin="195,276,0,0" Name="btnUpdate" Style="{StaticResource ButtonStyle}" VerticalAlignment="Top" Width="90" />
                <TextBlock Background="CornflowerBlue" FontFamily="Arial" FontSize="14" FontStretch="Normal" FontWeight="Bold" Foreground="White" Height="57" HorizontalAlignment="Left" Name="textBlock1" Padding="6" Text="Please select student to edit from table on right. Edit information and click update button when done." TextTrimming="None" TextWrapping="Wrap" VerticalAlignment="Top" Width="306" />
            </Grid>
            <Grid Margin="306,0,0,0" Background="White">
            <Label Content="Updated Record: " Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lblUpdatedRecord" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
            <Label Content="Student has been updated successfully." Foreground="DarkGreen" Height="28" HorizontalAlignment="Left" Margin="128,6,0,0" Name="lblStudentSuccess" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
            <DataGrid Name="dataGridStudent" Style="{StaticResource DataGridViewStyle}" SelectionMode="Single" SelectionChanged="dataGridStudent_SelectionChanged" Margin="6,40,25,27" />
            <Label Content="Please check that information is entered correctly." Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="128,6,0,0" Name="lblInformationCheck" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
            <Label Content="No students found." Height="28" HorizontalAlignment="Left" Margin="17,103,0,0" Name="lblNoStudents" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
        </Grid>
        </Grid>
    </Grid>
</Page>
